<?php

namespace apiend\modules\course\controllers;

use Yii;
use apiend\components\Controller;

/**
 * 课程检索相关接口
 * Default controller for the `course` module
 */
class RecommendController extends Controller {

    public $modelClass = 'apiend\modules\course\models\RecommendCourseSearch';

    /**
     * 推荐课程列表
     * @inheritdoc
     */
    public function actionIndex() {
        /* @var $modelClass \apiend\modules\course\models\RecommendCourseSearch */
        $modelClass = new $this->modelClass;
        return $modelClass->search(Yii::$app->request->getQueryParams());
    }

}
